package com.huika.dealontop.support.domain;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author: Victor Wu
 * Email: victor-wu*foxmail.com
 * Time: 2015/11/16 16:36
 * Description: 个人资料
 */
public class UserInfoDetailBean implements Parcelable {


    /**
     * account : 0600000000
     * couponQuantity : 1
     * email :
     * evaluateQuantity : 43
     * nickName : 电风扇
     * orderQuantity : 23
     * pendingPayment : 0
     * phone : 0600000000
     * realName : 张三
     * referralCode : 100748
     * referralLink : http://192.168.18.83:8089/Register/Index?Codes=100748
     * sex : 2（1：男,2：女，0：未设）
     * toBeUser : 5
     * userHeadImage : http://192.168.16.218/pm1/M00/09/2A/wKgQ2lZVNkmAex2TAAC3b0qbj78465.jpg
     * waitComments : 5
     */

    private String account;
    private int couponQuantity;
    private String email;
    private int evaluateQuantity;
    private String nickName;
    private int orderQuantity;
    private int pendingPayment;
    private String phone;
    private String realName;
    private int referralCode;
    private String referralLink;
    private int sex;
    private int toBeUser;
    private String userHeadImage;
    private int waitComments;

    public void setAccount(String account) {
        this.account = account;
    }

    public void setCouponQuantity(int couponQuantity) {
        this.couponQuantity = couponQuantity;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setEvaluateQuantity(int evaluateQuantity) {
        this.evaluateQuantity = evaluateQuantity;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setOrderQuantity(int orderQuantity) {
        this.orderQuantity = orderQuantity;
    }

    public void setPendingPayment(int pendingPayment) {
        this.pendingPayment = pendingPayment;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public void setReferralCode(int referralCode) {
        this.referralCode = referralCode;
    }

    public void setReferralLink(String referralLink) {
        this.referralLink = referralLink;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public void setToBeUser(int toBeUser) {
        this.toBeUser = toBeUser;
    }

    public void setUserHeadImage(String userHeadImage) {
        this.userHeadImage = userHeadImage;
    }

    public void setWaitComments(int waitComments) {
        this.waitComments = waitComments;
    }

    public String getAccount() {
        return account;
    }

    public int getCouponQuantity() {
        return couponQuantity;
    }

    public String getEmail() {
        return email;
    }

    public int getEvaluateQuantity() {
        return evaluateQuantity;
    }

    public String getNickName() {
        return nickName;
    }

    public int getOrderQuantity() {
        return orderQuantity;
    }

    public int getPendingPayment() {
        return pendingPayment;
    }

    public String getPhone() {
        return phone;
    }

    public String getRealName() {
        return realName;
    }

    public int getReferralCode() {
        return referralCode;
    }

    public String getReferralLink() {
        return referralLink;
    }

    public int getSex() {
        return sex;
    }

    public int getToBeUser() {
        return toBeUser;
    }

    public String getUserHeadImage() {
        return userHeadImage;
    }

    public int getWaitComments() {
        return waitComments;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.account);
        dest.writeInt(this.couponQuantity);
        dest.writeString(this.email);
        dest.writeInt(this.evaluateQuantity);
        dest.writeString(this.nickName);
        dest.writeInt(this.orderQuantity);
        dest.writeInt(this.pendingPayment);
        dest.writeString(this.phone);
        dest.writeString(this.realName);
        dest.writeInt(this.referralCode);
        dest.writeString(this.referralLink);
        dest.writeInt(this.sex);
        dest.writeInt(this.toBeUser);
        dest.writeString(this.userHeadImage);
        dest.writeInt(this.waitComments);
    }

    public UserInfoDetailBean() {
    }

    protected UserInfoDetailBean(Parcel in) {
        this.account = in.readString();
        this.couponQuantity = in.readInt();
        this.email = in.readString();
        this.evaluateQuantity = in.readInt();
        this.nickName = in.readString();
        this.orderQuantity = in.readInt();
        this.pendingPayment = in.readInt();
        this.phone = in.readString();
        this.realName = in.readString();
        this.referralCode = in.readInt();
        this.referralLink = in.readString();
        this.sex = in.readInt();
        this.toBeUser = in.readInt();
        this.userHeadImage = in.readString();
        this.waitComments = in.readInt();
    }

    public static final Creator<UserInfoDetailBean> CREATOR = new Creator<UserInfoDetailBean>() {
        public UserInfoDetailBean createFromParcel(Parcel source) {
            return new UserInfoDetailBean(source);
        }

        public UserInfoDetailBean[] newArray(int size) {
            return new UserInfoDetailBean[size];
        }
    };
}
